package com.cmit.paas.demo.web;

import com.cmit.paas.demo.web.model.ModelMap;
import com.cmit.paas.demo.web.model.ModelMapConfiguration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class TestController {

    private final ModelMapConfiguration modelMapConfiguration;

    public TestController(ModelMapConfiguration modelMapConfiguration) {
        this.modelMapConfiguration = modelMapConfiguration;
    }

    @RequestMapping("/test")
    public Map test(){
        Map p = new HashMap();
        p.put("region", modelMapConfiguration);
        return p;
    }
}
